<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/6/2
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>主界面</title>
    <script type="text/javascript">
      function login(){
        var msg = "${msg}";
        if (msg.length>0) {
          alert(msg);
        }
      }

    </script>
  </head>
  <body onload="login();">
  <form action="loginController.controller" method="post">
    <table border="1" width="50%" align="center">
      <tr>
        <th align="right">用户名:</th>
        <td>
          <input type="text" name="username" />

        </td>
      </tr>
      <tr>
        <th align="right">密码:</th>
        <td>

          <input type="password" name="password" />
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
          <input type="submit" value="登录" />
        </td>
      </tr>
    </table>
  </form>
  </body>
</html>
